package com.example.administrator.funchat.Contans;

/**
 * Created by zxtzx on 2016/7/1.
 */


public interface Config {

    String IP = "101.200.155.178:8080";//ip地址和端口
    String HOME_PAGE = "http://" + IP + "/MyChat/UserServlet?";
    String LOGIN = HOME_PAGE + "options=login";//登陆，第一个参数phone，第二个参数password
    String REGISTER = HOME_PAGE + "options=register";//注册，第一个参数phone，第二个参数password
    String IS_REGISTER = HOME_PAGE + "options=isRegister";//判断是否已注册,一个参数phone
    String USER_DATA = HOME_PAGE + "options=getUserList";//获取好友列表,一个参数phone
    String USER_UPDATE = HOME_PAGE + "options=userUpdateInfo";//更新用户资料，第一个参数phone，第二个参数name，第三个参数sex，第四个参数signature，第五个参数address

    String UPDATE_HEAD_IMAGE = "http://" + IP + "/MyChat/UpdatePicServlet";//上传头像
    String UPDATE_MY_HEAD_IMAGE = HOME_PAGE + "options=updatePic";//更新头像，第一个参数phone,第二个参数path
    String SEARCH_FRIEND = HOME_PAGE + "options=search";//查找好友，第一个参数phone

    String FRIEND = "http://" + IP + "/MyChat/PushMessageServlet?";
    String ADD_FRIEND = FRIEND + "options=addFriend";//添加好友，第一个参数自己mine_phone，第二个参数好友号码friend_phone
    String AGREE_ADD_FRIEND = FRIEND + "options=agreeAddFriend";//同意添加好友，第一个参数自己mine_phone，第二个参数好友号码friend_phone
    String SEND_MESSAGE = FRIEND + "options=sendMessage";//发送消息，mine_phone,friend_phone,content

}
